TimeValue(TimeParameter: String/Date/Time/DateTime): Time
TimeValue returns a time value for TimeParameter. The format matches the default date / time format.
TimeValue function syntax has these named arguments:
Parameter |
Description |
|---|---|
TimeParameter |
Required. Parameter to be formatted as a time. This can be a String, Date, Time or DateTime parameter, including ISO 8601 Date Time strings. |
Example usage:
strTime = "2026-05-04T01:10:20Z"
Print DateValue(strTime)
Print TimeValue(strTime)
Print ""
strTime = "2026-05-13T00:00:00Z"
Print DateValue(strTime)
Print TimeValue(strTime)
Returns:
4/05/2026
1:10:20 am
13/05/2026
12:00:00 am